From XCode 12 SwiftUI supports VideoPlayer for playing Video (which for now doesn't work in simulator).
ContentView.swift
import SwiftUI
import AVKit
struct ContentView: View {
private let player = AVPlayer(url: URL(string: "https://ivoronline.com/BachataBasic.mp4")!)
var body: some View {
VideoPlayer(player: player)
}
}